package com.xxx.dit.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;

/**
 * T Dict表
 *
 * @TableName t_dict
 */
@Data
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("品牌id")
    private Long id;

    @ApiModelProperty("品牌名字")
    private String dictName;

    @ApiModelProperty("编号")
    private String sn;

    @ApiModelProperty("上级Id")
    private Long parentId;

    @ApiModelProperty("父类型对象")
    private Dict parent;

    //用来存储子类型数据
    @ApiModelProperty("文章类型的子集合")
    //注解作用:不为空才有数据返回
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Dict> children = new ArrayList<Dict>();


}